package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.domain.FileModel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 收益对象 sys_income
 * 
 * @author paul
 * @date 2023-06-25
 */
public class SysIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 投资人id */
    @Excel(name = "投资人id")
    private Long userId;

    /** 当月收益 */
    @Excel(name = "当月收益")
    private String monIncome;

    /** 当月收益兑付时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "当月收益兑付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date monIncomeTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long createUserid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long updateUserid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMonIncome(String monIncome)
    {
        this.monIncome = monIncome;
    }

    public String getMonIncome()
    {
        return monIncome;
    }
    public void setMonIncomeTime(Date monIncomeTime) 
    {
        this.monIncomeTime = monIncomeTime;
    }

    public Date getMonIncomeTime() 
    {
        return monIncomeTime;
    }
    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }
    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("monIncome", getMonIncome())
            .append("monIncomeTime", getMonIncomeTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUserid", getCreateUserid())
            .append("updateUserid", getUpdateUserid())
            .toString();
    }
}
